package com.example.a18990144;

import android.annotation.SuppressLint;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtil {
    @SuppressLint("SimpleDateFormat")
    public static  String getNowDateTime(){
        SimpleDateFormat s_format=new SimpleDateFormat("yyyymmddhhmmss");
        return s_format.format(new Date());

    }

    @SuppressLint("SimpleDateFormat")
    public static  String getNowTime(){
        SimpleDateFormat s_format=new SimpleDateFormat("hh:mm:ss");
        return s_format.format(new Date());
    }
}